<template>
  <el-form-item prop="hidden" label="是否隐藏">
    <el-switch
      v-model="optionModel.hidden"
      :active-value="0"
      active-text="显示"
      :inactive-value="1"
      inactive-text="隐藏"
      inline-prompt
      :disabled="disabled"
    ></el-switch>
  </el-form-item>
</template>

<script>
export default {
  name: 'HiddenEditor',
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object,
    disabled: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<style scoped></style>
